package com.acme.bankapp.domain.bank;

public class Client {
	Account clientAccount;
	String clientName;
	Gender gender;

	public enum Gender {
		MALE("Mr."), FEMALE("Ms.");
		String gender;

		private Gender(String gender) {
			this.gender = gender;
		}

		public String getSolution() {
			return gender;
		}

	}

	public Client(String clientName, Gender gender, Account clientAccount) {
		this.clientName = clientName;
		this.gender = gender;
		this.clientAccount = clientAccount;
	}

	public Account getAccount() {
		return clientAccount;
	}

	public void getClientSolutation() {
		if (gender!=null) {
			System.out
					.print(gender.getSolution() + " " + clientName + " ");
		} 

	}
}
